package com.skyable.third.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author GaoYuan
 * @title: SmsFeignApi
 * @projectName spring-cloud-oauth2-demo
 * @description: 调用云之讯短信接口
 * @date 2021/4/1314:01
 */
@FeignClient(url = "${sms.server.url}", value = "cloud-third")
public interface SmsFeignApi {

    /**
     * 发送短信
     * @param params
     * @return
     */
    @PostMapping("sendsms")
    JSONObject sendsms(@RequestBody Map<String, String> params);

}
